package com.example.webdemo.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Date 2021/6/22 14:23
 * @Created by wangle
 * @Description
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("user")  //指定表名
public class User {

    //存在的属性，都应该在数据库中有
    @TableField(exist = false  )//表示声明，这两个属性在表里面不存在
    private  String UserName;
    @TableField(exist = false)
    private  String Password;



    //一下是数据库的字段
    private  String name;
    private int id;
    private  int age;

}
